package cn.edu.zut.service;

import cn.edu.zut.domin.BookIndex;

import java.util.List;

//更改码云仓库中的文件注释信息，重新推了一次
public interface IBookIndexService {
    /**
     * 查询所有索引
     * @return
     * @throws Exception
     */
    public List<BookIndex> findAll(int page, int size) throws Exception;
    /**
     * 查询索引ById
     * @return
     * @throws Exception
     */
    public List<BookIndex> findBookIndexByTypeId(String id) throws Exception;

    /**
     * 保存一个索引
     * @param bookIndex
     * @throws Exception
     */
    public void saveBookIndex(BookIndex bookIndex) throws Exception;


    /**
     * 删除一本书
     * @param typeId
     * @throws Exception
     */
    public void deleteBookIndex(String typeId) throws Exception;

    /**
     * 更新一本书byid
     * @param bookIndex
     * @throws Exception
     */
    public void updateBookIndex(BookIndex bookIndex) throws Exception;

}
